package com.qf.leadnewsfeignapi.schedule;

import com.qf.leadnewsmodel.dtos.ResponseResult;
import com.qf.leadnewsmodel.pojos.schedule.Task;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface ScheduleApi {

    @PostMapping("/api/feign/schedule/add")
    public ResponseResult addTask(@RequestBody Task task);

    @GetMapping("/api/feign/schedule/consumeTask/{taskType}/{priority}")
    public ResponseResult consumeTask(@PathVariable("taskType") int taskType, @PathVariable("priority") int priority);
}
